import http from '@/utils/request'
import {useUserStore} from '@/stores/user'

export const login = (data: any) => {
  return http.request({
    url: '/api/v1/auth/login',
    method: 'post',
    data: { username: data.username, password: data.password, captchaVO: data.captchaVO },
    headers: {
      'Content-Type': 'application/json'
    }
  })
}
